import {createRouter, createWebHashHistory} from 'vue-router'
import staticRoutes from './staticRoutes'

const Router = createRouter({
    history: createWebHashHistory(),
    routes: [...staticRoutes],
})

Router.beforeEach((to, from, next) => {
    /*console.log('to',to.path)
    if (to.path === '/login') {
        next()
    } else {

        next('/login')
    }*/
    next()
})

export default Router
